persistent = False
other_builds = 0
tree_expire = 0
+git_ssh = False
if ini.has_option("general", "port"):
slave_port = ini.getint("general", "port")
if ini.has_option("general", "expire"):
tree_expire = ini.getint("general", "expire")
+if ini.has_option("general", "git_ssh"):
+ git_ssh = ini.getboolean("general", "git_ssh")
+
c['slaves'] = []
max_builds = dict()
command = ["./ccache.sh"],
haltOnFailure = True))
+ if git_ssh:
+ factory.addStep(FileDownload(
+ name = "dlgitclonekey",
+ mastersrc = home_dir+"/git-clone.key",
+ slavedest = "../git-clone.key",
+ mode = 0600))
+
+ factory.addStep(ShellCommand(
+ name = "patchfeedsconf",
+ description = "Patching feeds.conf",
+ workdir = "build/sdk",
+ command = "sed -e 's#https://#ssh://git@#g' feeds.conf.default > feeds.conf",
+ haltOnFailure = True))
+
factory.addStep(ShellCommand(
name = "updatefeeds",
description = "Updating feeds",
workdir = "build/sdk",
command = ["./scripts/feeds", "update", "-f"],
+ env = {'GIT_SSH_COMMAND': WithProperties("ssh -o IdentitiesOnly=yes -o IdentityFile=%(cwd)s/git-clone.key -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no", cwd=GetCwd)} if git_ssh else {},
haltOnFailure = True))
+ if git_ssh:
+ factory.addStep(ShellCommand(
+ name = "rmfeedsconf",
+ description = "Removing feeds.conf",
+ workdir = "build/sdk",
+ command=["rm", "feeds.conf"],
+ haltOnFailure = True))
+
factory.addStep(ShellCommand(
name = "installfeeds",
description = "Installing feeds",